WooCommerce\Square\Gateway D

Total Complexity 164
Dependencies 27
Dependents 5
Total lines 1,269
Lines of code 559
Logical lines of code 308
Comment lines 468
Methods 47
Properties 4

Methods 47

Method Rating Maintainability Complexity Lines of code
should_charge_order()
A
50 13 24
get_order()
A
45 10 39
get_order_for_refund()
A
49 9 27
enqueue_gateway_assets()
A
56 9 15
validate_fields()
A
52 8 25
filter_available_gateways()
A
53 8 22
wc_ajax_square_checkout_validate()
S
52 7 24
do_transaction()
S
49 6 31
get_token_by_id()
S
57 6 15
log_js_data()
S
60 6 11
is_digital_wallet_available()
S
60 6 11
store_new_order_item_square_meta()
S
58 5 16
get_order_meta()
S
64 6 9
get_order_amount()
S
57 5 15
add_digital_wallets_form_fields()
S
42 1 62
get_order_with_unique_transaction_ref()
S
59 4 14
add_card_types_form_fields()
S
61 4 12
get_payment_method_image_url()
S
61 4 11
add_payment_gateway_transaction_data()
S
64 4 10
__construct()
S
46 1 41
enqueue_payment_form_assets()
S
71 3 6
get_order_for_add_payment_method()
S
68 3 7
is_available()
S
78 3 3
get_validation_exception()
S
72 2 5
add_tokenization_form_fields()
S
66 2 8
get_payment_form_instance()
S
71 2 6
get_api()
S
68 2 7
get_guest_customer_id()
S
69 2 7
get_application_id()
S
68 2 7
wc_ajax_square_checkout_handler()
S
66 2 7
filter_no_payment_gatways_message()
S
71 2 6
is_change_payment_method_request()
S
79 2 3
do_payment_method_transaction()
S
79 1 3
get_order_for_capture()
S
70 1 6
build_payment_tokens_handler()
S
80 1 3
get_digital_wallet_handler()
S
82 1 3
init_form_fields()
S
81 1 3
add_csc_form_fields()
S
82 1 3
csc_enabled()
S
82 1 3
tokenize_before_sale()
S
82 1 3
tokenize_after_sale()
S
82 1 3
is_3d_secure_enabled()
S
69 1 6
get_authorization_time_window()
S
82 1 3
get_method_form_fields()
S
82 1 3
get_customer_id()
S
75 1 4
get_environment()
S
81 1 3
mark_order_as_refunded()
S
75 1 4